import { defineUserConfig } from "vuepress";
import recoTheme from "vuepress-theme-reco";
import { viteBundler } from "@vuepress/bundler-vite";
import { webpackBundler } from "@vuepress/bundler-webpack";

export default defineUserConfig({
    lang: "zh-CN",
    title: "一条小憨憨~",
    description: "张憨憨的个人博客",
    bundler: viteBundler(),
    theme: recoTheme({
        logo: "/logo.png",
        author: "张憨憨",
        authorAvatar: "/head.jpg",
        docsRepo: "https://gitee.com/hanhan_999",
        docsBranch: "master",
        docsDir: "blog",
        editLink: false,
        lastUpdated: false,
        // series 为原 sidebar
        series: {},
        navbar: [
            { text: "Home", link: "/" },
            { text: "博客", link: "/posts" },
            {
                text: "开发笔记",
                children: [
                    { text: "SSL证书", link: "/blogs/SSL" },
                    { text: "关联查询", link: "/blogs/关联查询" },
                    { text: "上传组件", link: "/blogs/上传组件" },
                    { text: "权限问题", link: "/blogs/权限问题" },
                    { text: "文档阅读", link: "/blogs/文档阅读" },
                ],
            },
        ],
    }),
    debug: false,
});
